import React,{useState} from "react";
// import type { NextPage } from 'next'
function Count(){
    let [count,setCount]=useState(1);
    const addCountHandler=()=>{
        setCount(count+1);
    }

    return(
        <>
            <h2>Counter page</h2>
            <div>
                <button onClick={addCountHandler}>click</button>
                <h3>now count is {count}</h3>
            </div>
        </>
    )
}

export default Count;